import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state={
    city:"北京"
}

const mutations={
    changecitys(state,cityname){
       state.city=cityname;
    }
}

export default new Vuex.Store({

state,
mutations

})